package org.service;

import org.model.History;
import org.model.Wiki;

import java.util.List;

/**
 * Created by tedzy on 2015/5/18.
 * Wiki Service
 */
public interface WikiService {
    int newWiki(String title, String content);
    int newHistory(int wikiid, int uid, String title, String content, String reason);
    boolean editWiki(int id, String title, String content);
    Wiki getWiki(String title);
    List<Wiki> searchWiki(String title);
    List<History> getHistories(int wikiid);
    Wiki getWikiById(int wikiid);
    History getHistory(int id);
    List<History> getAuthorHistories(int uid);
}
